package com.gps.pe.base.api;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

import com.gps.pe.exception.PeException;
import com.gps.pe.mock.examples.TestRoleMyController;

/**
 * Abstract class for all Controller
 * 
 * @author GPS
 *
 */
abstract public class AbstractPlacementEngineController implements PlacementEngineController {

	private static final Logger LOGGER = Logger.getLogger(TestRoleMyController.class);
	
	@Override
	public void populateBean(HttpServletRequest req, HttpServletResponse resp) throws PeException {	
		LOGGER.debug("Default Request Handler called...");
	}

	@Override
	public void execute(HttpServletRequest req, HttpServletResponse resp) throws PeException {	
		LOGGER.debug("No execution defined inside child controller...");
	}

	@Override
	public String resolveView(HttpServletRequest req, HttpServletResponse resp) throws PeException {
		LOGGER.debug("Default View Resolver called...");
		return "jsp/placementengine.jsp";
	}
}
